<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<script>
    <c:if test="${inpPaymentsMoneys.size()==0}">
    toastr.warning("暂无结账数据");
    </c:if>
    $(function(){
        $('#rcptsNum').val('${medicalCardRechangeRec.rcptsNum}');
        $("#sumAmount").val('${medicalCardRechangeRec.sumAmount}');
        $("#refundNum").val('${medicalCardChangeLog.refundNum}');
        $("#chargesAmount").val('${medicalCardChangeLog.chargesAmount}');
    })
</script>
<div>
    <section class="panel">
        <div class="panel-body">
            <table class="table table-bordered mg-t datatable">
                <thead>
                <tr>
                    <th>收据号</th>
                    <th>卡号</th>
                    <th>金额</th>
                    <th>支付方式</th>
                    <th>类型</th>
                    <th>日期</th>
                </tr>
                </thead>
                <tbody>
                <c:forEach items="${list}" var="med">
                    <tr>
                        <td>${med.rcptNo}</td>
                        <td>${med.cardNo}</td>
                        <td>${med.rechangeMoney}</td>
                        <td>${fns:getDictLabel(med.rechangeType,'card_pay_way', '')}</td>
                        <td>${med.type}</td>
                        <td><fmt:formatDate value="${med.createDate}" pattern="yyyy-MM-dd HH:mm:ss"></fmt:formatDate></td>
                    </tr>
                </c:forEach>
                </tbody>
            </table>
        </div>
    </section>
</div>